Optimal. Leaf size=192 \[ -\frac {\sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right ) d \left (a+b x+c x^2\right )^2}+\frac {7 c \sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right )^2 d \left (a+b x+c x^2\right )}-\frac {21 c^2 \tan ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{11/4} \sqrt {d}}-\frac {21 c^2 \tanh ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{11/4} \sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 192, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {701, 708, 335,
218, 212, 209} \begin {gather*} -\frac {21 c^2 \text {ArcTan}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt {d} \sqrt [4]{b^2-4 a c}}\right )}{\sqrt {d} \left (b^2-4 a c\right )^{11/4}}-\frac {21 c^2 \tanh ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt {d} \sqrt [4]{b^2-4 a c}}\right )}{\sqrt {d} \left (b^2-4 a c\right )^{11/4}}+\frac {7 c \sqrt {b d+2 c d x}}{2 d \left (b^2-4 a c\right )^2 \left (a+b x+c x^2\right )}-\frac {\sqrt {b d+2 c d x}}{2 d \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 218
Rule 335
Rule 701
Rule 708
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {b d+2 c d x} \left (a+b x+c x^2\right )^3} \, dx &=-\frac {\sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right ) d \left (a+b x+c x^2\right )^2}-\frac {(7 c) \int \frac {1}{\sqrt {b d+2 c d x} \left (a+b x+c x^2\right )^2} \, dx}{2 \left (b^2-4 a c\right )}\\ &=-\frac {\sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right ) d \left (a+b x+c x^2\right )^2}+\frac {7 c \sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right )^2 d \left (a+b x+c x^2\right )}+\frac {\left (21 c^2\right ) \int \frac {1}{\sqrt {b d+2 c d x} \left (a+b x+c x^2\right )} \, dx}{2 \left (b^2-4 a c\right )^2}\\ &=-\frac {\sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right ) d \left (a+b x+c x^2\right )^2}+\frac {7 c \sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right )^2 d \left (a+b x+c x^2\right )}+\frac {(21 c) \text {Subst}\left (\int \frac {1}{\sqrt {x} \left (a-\frac {b^2}{4 c}+\frac {x^2}{4 c d^2}\right )} \, dx,x,b d+2 c d x\right )}{4 \left (b^2-4 a c\right )^2 d}\\ &=-\frac {\sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right ) d \left (a+b x+c x^2\right )^2}+\frac {7 c \sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right )^2 d \left (a+b x+c x^2\right )}+\frac {(21 c) \text {Subst}\left (\int \frac {1}{a-\frac {b^2}{4 c}+\frac {x^4}{4 c d^2}} \, dx,x,\sqrt {d (b+2 c x)}\right )}{2 \left (b^2-4 a c\right )^2 d}\\ &=-\frac {\sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right ) d \left (a+b x+c x^2\right )^2}+\frac {7 c \sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right )^2 d \left (a+b x+c x^2\right )}-\frac {\left (21 c^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {b^2-4 a c} d-x^2} \, dx,x,\sqrt {d (b+2 c x)}\right )}{\left (b^2-4 a c\right )^{5/2}}-\frac {\left (21 c^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {b^2-4 a c} d+x^2} \, dx,x,\sqrt {d (b+2 c x)}\right )}{\left (b^2-4 a c\right )^{5/2}}\\ &=-\frac {\sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right ) d \left (a+b x+c x^2\right )^2}+\frac {7 c \sqrt {b d+2 c d x}}{2 \left (b^2-4 a c\right )^2 d \left (a+b x+c x^2\right )}-\frac {21 c^2 \tan ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{11/4} \sqrt {d}}-\frac {21 c^2 \tanh ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{11/4} \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.85, size = 272, normalized size = 1.42 \begin {gather*} \frac {\left (\frac {1}{2}+\frac {i}{2}\right ) c^2 \left (-\frac {\left (\frac {1}{2}-\frac {i}{2}\right ) (b+2 c x) \left (b^2-7 b c x-c \left (11 a+7 c x^2\right )\right )}{c^2 \left (b^2-4 a c\right )^2 (a+x (b+c x))^2}-\frac {21 i \sqrt {b+2 c x} \tan ^{-1}\left (1-\frac {(1+i) \sqrt {b+2 c x}}{\sqrt [4]{b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{11/4}}+\frac {21 i \sqrt {b+2 c x} \tan ^{-1}\left (1+\frac {(1+i) \sqrt {b+2 c x}}{\sqrt [4]{b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{11/4}}+\frac {21 i \sqrt {b+2 c x} \tanh ^{-1}\left (\frac {(1+i) \sqrt [4]{b^2-4 a c} \sqrt {b+2 c x}}{\sqrt {b^2-4 a c}+i (b+2 c x)}\right )}{\left (b^2-4 a c\right )^{11/4}}\right )}{\sqrt {d (b+2 c x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(376\) vs.
\(2(164)=328\).
time = 0.72, size = 377, normalized size = 1.96
method | result | size |
derivativedivides | \(64 d^{5} c^{2} \left (\frac {\sqrt {2 c d x +b d}}{8 \left (4 a c \,d^{2}-b^{2} d^{2}\right ) \left (4 a c \,d^{2}-b^{2} d^{2}+\left (2 c d x +b d \right )^{2}\right )^{2}}+\frac {\frac {7 \sqrt {2 c d x +b d}}{32 \left (4 a c \,d^{2}-b^{2} d^{2}\right ) \left (4 a c \,d^{2}-b^{2} d^{2}+\left (2 c d x +b d \right )^{2}\right )}+\frac {21 \sqrt {2}\, \left (\ln \left (\frac {2 c d x +b d +\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}{2 c d x +b d -\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{256 \left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {7}{4}}}}{4 a c \,d^{2}-b^{2} d^{2}}\right )\) | \(377\) |
default | \(64 d^{5} c^{2} \left (\frac {\sqrt {2 c d x +b d}}{8 \left (4 a c \,d^{2}-b^{2} d^{2}\right ) \left (4 a c \,d^{2}-b^{2} d^{2}+\left (2 c d x +b d \right )^{2}\right )^{2}}+\frac {\frac {7 \sqrt {2 c d x +b d}}{32 \left (4 a c \,d^{2}-b^{2} d^{2}\right ) \left (4 a c \,d^{2}-b^{2} d^{2}+\left (2 c d x +b d \right )^{2}\right )}+\frac {21 \sqrt {2}\, \left (\ln \left (\frac {2 c d x +b d +\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}{2 c d x +b d -\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{256 \left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {7}{4}}}}{4 a c \,d^{2}-b^{2} d^{2}}\right )\) | \(377\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 2021 vs.
\(2 (164) = 328\).
time = 2.26, size = 2021, normalized size = 10.53 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 645 vs.
\(2 (164) = 328\).
time = 2.54, size = 645, normalized size = 3.36 \begin {gather*} -\frac {21 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} c^{2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} + 2 \, \sqrt {2 \, c d x + b d}\right )}}{2 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}}}\right )}{\sqrt {2} b^{6} d - 12 \, \sqrt {2} a b^{4} c d + 48 \, \sqrt {2} a^{2} b^{2} c^{2} d - 64 \, \sqrt {2} a^{3} c^{3} d} - \frac {21 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} c^{2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} - 2 \, \sqrt {2 \, c d x + b d}\right )}}{2 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}}}\right )}{\sqrt {2} b^{6} d - 12 \, \sqrt {2} a b^{4} c d + 48 \, \sqrt {2} a^{2} b^{2} c^{2} d - 64 \, \sqrt {2} a^{3} c^{3} d} - \frac {21 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} c^{2} \log \left (2 \, c d x + b d + \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} \sqrt {2 \, c d x + b d} + \sqrt {-b^{2} d^{2} + 4 \, a c d^{2}}\right )}{2 \, {\left (\sqrt {2} b^{6} d - 12 \, \sqrt {2} a b^{4} c d + 48 \, \sqrt {2} a^{2} b^{2} c^{2} d - 64 \, \sqrt {2} a^{3} c^{3} d\right )}} + \frac {21 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} c^{2} \log \left (2 \, c d x + b d - \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} \sqrt {2 \, c d x + b d} + \sqrt {-b^{2} d^{2} + 4 \, a c d^{2}}\right )}{2 \, {\left (\sqrt {2} b^{6} d - 12 \, \sqrt {2} a b^{4} c d + 48 \, \sqrt {2} a^{2} b^{2} c^{2} d - 64 \, \sqrt {2} a^{3} c^{3} d\right )}} - \frac {2 \, {\left (11 \, \sqrt {2 \, c d x + b d} b^{2} c^{2} d^{3} - 44 \, \sqrt {2 \, c d x + b d} a c^{3} d^{3} - 7 \, {\left (2 \, c d x + b d\right )}^{\frac {5}{2}} c^{2} d\right )}}{{\left (b^{4} - 8 \, a b^{2} c + 16 \, a^{2} c^{2}\right )} {\left (b^{2} d^{2} - 4 \, a c d^{2} - {\left (2 \, c d x + b d\right )}^{2}\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.18, size = 317, normalized size = 1.65 \begin {gather*} \frac {\frac {14\,c^2\,d\,{\left (b\,d+2\,c\,d\,x\right )}^{5/2}}{16\,a^2\,c^2-8\,a\,b^2\,c+b^4}+\frac {22\,c^2\,d^3\,\sqrt {b\,d+2\,c\,d\,x}}{4\,a\,c-b^2}}{{\left (b\,d+2\,c\,d\,x\right )}^4-{\left (b\,d+2\,c\,d\,x\right )}^2\,\left (2\,b^2\,d^2-8\,a\,c\,d^2\right )+b^4\,d^4+16\,a^2\,c^2\,d^4-8\,a\,b^2\,c\,d^4}-\frac {21\,c^2\,\mathrm {atan}\left (\frac {\sqrt {b\,d+2\,c\,d\,x}\,{\left (b^2-4\,a\,c\right )}^{15/4}}{\sqrt {d}\,\left (256\,a^4\,c^4-256\,a^3\,b^2\,c^3+96\,a^2\,b^4\,c^2-16\,a\,b^6\,c+b^8\right )}\right )}{\sqrt {d}\,{\left (b^2-4\,a\,c\right )}^{11/4}}-\frac {21\,c^2\,\mathrm {atanh}\left (\frac {\sqrt {b\,d+2\,c\,d\,x}\,{\left (b^2-4\,a\,c\right )}^{15/4}}{\sqrt {d}\,\left (256\,a^4\,c^4-256\,a^3\,b^2\,c^3+96\,a^2\,b^4\,c^2-16\,a\,b^6\,c+b^8\right )}\right )}{\sqrt {d}\,{\left (b^2-4\,a\,c\right )}^{11/4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________